home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1997 January / Macworld (1997-01).dmg / Shareware World / Maths & Science / DynRisk 4.0.3 / DynRisk-Help / DynRisk-Help.rsrc / TEXT_6524.txt < prev    next >
Text File  |  1996-08-30  |  1KB  |  25 lines

  1. Thresh3
  2.  
  3. A simple threshold function where the threshold is a linear function defined by the ‚Äúc‚Äù, ‚Äúd‚Äù and ‚Äúe‚Äù parameters. Instead of a single constant threshold, the threshold has the form:
  4.  
  5.     Threshold = c d + e
  6.  
  7. If you specify numbers for all the parameters, you probably do not need this linear function. In such cases you can just replace the more complex threshold by a simple constant threshold, and use the Thresh1 function instead.
  8.  
  9. However, if some of the parameters are references to nodes, the Thresh3 function provides a little bit more flexibility.
  10.  
  11. If the input value is greater than or equal to the threshold, the output value is equal to the ‚Äúa‚Äù parameter. Otherwise, the output value is equal to the ‚Äúb‚Äù parameter. 
  12.  
  13. Like the Thresh1 function, this function is also useful for converting a variable to e.g., an indicator. By letting ‚Äúa‚Äù be 1 and ‚Äúb‚Äù be 0, the output value is the indicator for the event that the input value is greater than or equal to the threshold.
  14.  
  15. Note that the ‚Äúa‚Äù parameter does not need to be greater than the ‚Äúb‚Äù parameter. It is perfectly OK to e.g., let ‚Äúa‚Äù be 0 and ‚Äúb‚Äù be 1.
  16.  
  17. Default parameter values:
  18.     a = 1, b = 0, c = 0, d = 0, e = 1
  19.  
  20. Example:
  21.     a = 10, b = 1, c = 2, d = 3, e = 1
  22.  
  23.     Input = 5  =>  Output = 1
  24.     Input = 9  =>  Output = 10
  25.